package com.lh7.ledger.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lh7.ledger.mapper.RecordValuesMapper;
import com.lh7.ledger.pojo.Ledgers;
import com.lh7.ledger.pojo.RecordValues;
import com.lh7.ledger.service.IRecordValuesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lh7
 * @since 2025-07-01
 */
@Service
public class RecordValuesServiceImpl extends ServiceImpl<RecordValuesMapper, RecordValues> implements IRecordValuesService {

    @Autowired
    private RecordValuesMapper recordValuesMapper;
    @Override
    public List<RecordValues> selectAll() {
        return recordValuesMapper.selectList(null);
    }

    @Override
    public List<RecordValues> selectByLedgerId(Long ledgerId) {

        return recordValuesMapper.selectByLedgerId(ledgerId);
    }
}
